<!DOCTYPE html>
<html lang="zh-CN">
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<title>钢链网--预览</title>
<style>
	*{
		padding:0;
		margin:0;
	}
	table {
		border-spacing: 0;
		border-collapse: collapse;
	}
	body{
		background:#f7f8f8;
		font-family: 'Hiragino Sans GB','Microsoft Yahei',"WenQuanYi Micro Hei",SimSun,Tahoma,Arial,Helvetica,STHeiti;
		font-size:14px;
		min-width:1200px;
	}
	.table{
		width:1200px;
		margin:20px auto;
	}
	.table table{
		width: 100%;
	}
	.table tbody>tr>td:first-child,
	.table thead>tr>th:first-child{
		padding-left: 40px;
	}
	.table thead>tr>th {
	    height: 44px;
	    background: #eee;
	    color: #595757;
	    font-weight: normal;
	    text-align: left;
	}
	.table tbody>tr>td {
	    background: #fff;
	    border-bottom: 1px dashed #dcdddd;
	    height: 58px;
	    color: #000;
	}
</style>
</head>
<body>
<div class="table">
	<table>
        @foreach($excel as $k => $p)
            <tr>
                @for($i=0;$i<count($p);$i++)
                    @if(!empty($p[$i]))<td>{{$p[$i]}}</td>@endif
                @endfor
            </tr>
        @endforeach
	</table>
</div>
<script src="/resource/js/jquery-1.11.3.min.js"></script>
<script type="text/javascript">
    for(var i = 0;i<$('.table tr').length;i++){
        if($('.table tr').eq(i).find('td').length == 1){
            $('.table tr').eq(i).find('td').attr('colspan','7');
        }
    }
</script>
</body>
</html>